package com.tina.exception;

import com.tina.enums.ResultEnum;

/**
 * @author Tina
 * @since 2020-07-01
 *
 * 系统异常
 */
public class SysException extends RuntimeException{
    private Integer code;

    public SysException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
